package com.wlanauth.domain.manage;

import java.util.Date;
import java.util.Set;

import com.wlanauth.core.domain.Entity;

/**
 * 角色
 * @author zz
 * @date 2012-5-10
 * @email charles.zz.life@gmail.com
 */
public class Role extends Entity {

	private static final long serialVersionUID = 1L;
	
	public static final Integer LEVEL_ROOT = 999;
	public static final Integer LEVEL_SUPER = 666;
	public static final Integer LEVEL_NOMAL = 333;
	
	private String id;
	/**
	 * 编码
	 */
	private String code;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 备注
	 */
	private String description;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	
	private Boolean editable;
	/**
	 * 角色级别
	 */
	private Integer level;
	
	private Set<SystemResource> systemResources;
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String desc) {
		this.description = desc;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Set<SystemResource> getSystemResources() {
		return systemResources;
	}
	public void setSystemResources(Set<SystemResource> systemResources) {
		this.systemResources = systemResources;
	}
	public Boolean getEditable() {
		return editable;
	}
	public void setEditable(Boolean editable) {
		this.editable = editable;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}

	
	
}
